package com.itheima.service;

import com.itheima.pojo.OrderSetting;
import com.itheima.pojo.dto.OrderSettingDTO;
import com.itheima.pojo.vo.OrderSettingVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.List;

public interface OrderSettingService {

	/**
	 * 下载文件
	 *
	 * @param response
	 * @param filename
	 */
	void download(HttpServletResponse response, String filename);

	/**
	 * 根据日期修改可预约人数
	 *
	 * @param orderSettingDTO
	 * @return
	 */
	Integer editNumberByOrderDate(OrderSettingDTO orderSettingDTO);

	/**
	 * 根据年月查询预约设置
	 *
	 * @param month
	 * @return
	 */
	List<OrderSettingVO> getOrderSettingByMonth(String month);


	/**
	 * 上传文件
	 *
	 * @param file
	 */
	Integer upload(MultipartFile file) throws IOException;
}
